<template>
  <div>
    {{ $route.params.id }}
  </div>
</template>

<script>

import { watch } from 'vue'

import { useRoute } from 'vue-router'
export default {
  setup() {

    let route = useRoute()
    watch(() => route.params.id, () => {
      // watch:{'$router.params.id'(){}}
      console.log(88888)
    })
    return {}
  }
}
</script>

<style lang="scss" scoped>
</style>